To use the PInvoke.net Add-In in Visual Studio 2008, you need to make some modifications. See http://www.red-gate.com/supportcenter/GeneralContent.aspx?c=knowledgebase\PInvoke\KB200711000198.htm